package strategy;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zenghy
 **/
@Slf4j
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public int execute(int x, int y) {
        return strategy.doOperation(x, y);
    }
}
